package com.surfacing.rcp.client.perspectives;

import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

import com.surfacing.rcp.client.view.NavigationView;

/**
 * This is the standard perspective for the employees to work
 * 
 * @author Michael
 */
public class Perspective implements IPerspectiveFactory {
	public static final String ID = "com.surfacing.rcp.client.perspectives.client";

	/**
	 * Set up the layout of the workbench
	 * 
	 * @param layout
	 *            the page layout to use
	 */
	public void createInitialLayout(IPageLayout layout) {
		String editorArea = layout.getEditorArea();
		layout.setEditorAreaVisible(false);
		layout.setFixed(false);
		// the main components
		layout.addStandaloneView(NavigationView.ID, false, IPageLayout.TOP,
				0.10f, editorArea);
		// layout.addStandaloneView(InfoView.ID, false, IPageLayout.TOP, 0.35f,
		// PersonalView.ID);
	}
}
